<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/resources/layui/css/layui.css" media="all">
</head>
<body>
<div style="padding: 20px">
 <div class="layui-form-item">
    <label class="layui-form-label">公告标题</label>
    <div class="layui-input-block">
      <input type="text" name="title" id="title" lay-verify="title"  autocomplete="off"  class="layui-input" readonly >
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">公告内容</label>
    <div class="layui-input-block">
      <textarea class="layui-textarea layui-hide"  name="content" lay-verify="content" disabled="disabled"  id="content" th:text="${noticeVo.content}"></textarea>
    </div>
  </div>
</div>
</body>
<script type="text/javascript" src="/resources/layui/layui.js"></script>
<script type="text/javascript">
layui.use(["layer","jquery","form","layedit"],function(){
	 var form = layui.form,
       layer = parent.layer === undefined ? layui.layer : top.layer,
       $ = layui.jquery,
       layedit = layui.layedit;
		//创建一个编辑器
	    var editIndex = layedit.build('content');
		var title = '[[${noticeVo.title}]]';
		$("#title").attr("value",title);
});
</script>
</html>